package com.tuling.proxy.advice;


import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

public class MethodAroundInterceptor implements MethodInterceptor {

    @Nullable
    @Override
    public Object invoke(@Nonnull MethodInvocation invocation) throws Throwable {

        System.out.println("kaishiqian*************");
        invocation.proceed();
        System.out.println("kaishihou=========");
        return null;
    }
}
